package com.hdoit.apollo.logical.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.shop.model.Customer;
import com.hdoit.apollo.logical.viewmodel.shop.CustomerSearch;
import com.tennetcn.data.dao.base.IMapper;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 17:46:07
 * @comment
 */
@Repository(value="customerMapper")
public interface CustomerMapper extends IMapper<Customer>{

	public List<Customer> getCustomerListByCargoId(@Param("cargoId")String cargoId);

	public Customer getCustomerByCustomerId(@Param("customerId") String customerId);

	public Customer queryCustomerInfoByCustomerId(@Param("customerId")String customerId);

	public Customer getCustomerById(@Param("customerId") String customerId,@Param("shopId") String shopId);

	public Customer getRetailCustomer(@Param("shopId") String shopId);

	public List<Customer> getList(@Param("search") CustomerSearch search);

	public Customer queryModelByOpenId(@Param("openId") String openId,@Param("shopId") String shopId);

}
